<script type="text/javascript" src="/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/jquery.shapeshift.min.js"></script>
<div class="view-header">
	<div class="view-header-left">
		<div class="view-header-item color-open" ng-click="shop_add = true" ng-show="!shop_add" title="添加门店">
	        <i class="fa fa-plus"></i> 添加门店
	    </div>
	    <div class="view-header-item color-save no-widen" ng-click="revise_submit()" ng-show="!shop_add" title="修改提交">
            <i class="fa fa-save"></i>
        </div>


        <div class="view-header-item color-close above-cover no-widen" ng-click="shop_add = false" ng-show="shop_add" title="关闭">
            <i class="fa fa-close"></i>
        </div>
        <div class="view-header-item color-check above-cover" ng-click="submit();shop_add = false" ng-show="shop_add" title="提交">
            <i class="fa fa-check"></i> 确认提交
        </div>

	</div>
</div>
<div class="view-content">
    <div class="view-left">
        <div class="view-left-search">
            <input type="text" placeholder='Search' ng-model="filter_shop">
            <i class="fa fa-search"></i>
        </div>
        <div class="view-left-block">
            <div class="view-left-item" ng-repeat="list in data |orderBy:['name'] |filter:filter_shop" ng-click="shop_list(list,data)"
                 ng-class="{true: 'marked', false: ''}[list.iscolor]">
                <li>
                    <i class="fa fa-user"></i>
                </li>
                <li class="view-left-item-user">
                    {{list.name}}
                </li>
                <li>
                    门店介绍:{{list.desc}}
                </li>
                <li class="view-left-item-del">
                    <i class="fa fa-trash" ng-click="delete();$event.stopPropagation()"></i>
                </li>
            </div>
        </div>
    </div>
    <div class="view-right">
        <div class="view-right-block">
            <!-- <div class="view-right-title" ng-show="add_shop_title">新增门店</div> -->

            <!-- 修改门店 -->
            <div class="new-content">
                <div class="new-item">
                    <span>门店名称</span>
					<input type="text" ng-model="revise_param.name">
                </div>
				<div class="new-item">
					<span>门店全称</span>
					<input type="text" ng-model="revise_param.full_name">
				</div>
                <div class="new-item">
                    <span>门店介绍</span>
					<input type="text" ng-model='revise_param.desc'>
                </div>
                <div class="new-item">
                    <span>门店ID</span>
					<input type="text" ng-model='revise_param.sn'>
                </div>
                <div class="new-item">
                    <span>门店类型</span>
					<select ng-model='revise_param.type'>
						<option value="0">普通</option>
						<option value="1">计算公式1</option>
						<option value="2">计算公式2</option>
						<option value="9">管理</option>
					</select>
                </div>
                <div class="new-item">
                    <span>选择品牌</span>
					<div class="picker all">
		                <select ng-options="item for item in revise_param._remain_brands" ng-model="brands_selected_to_add" multiple class="select-height"></select>
					</div>

		            <div class="controller">
						<button style="width:40px" ng-click="add_brands()"> <span class="fa fa-angle-double-down"></span> </button>
		            	<button style="width:40px" ng-click="remove_brands()"> <span class="fa fa-angle-double-up"></span> </button>
					</div>

					<div class="picker ok">
		                <select ng-options="item for item in revise_param._brands" ng-model="brands_selected_to_remove" multiple class="select-height"></select>
					</div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- add -->
<div class="data-overlay" ng-show='shop_add'>
    <div class="overlay-container">
        <div class="overlay-header">添加门店</div>
        <div ng-form name="form_add" novalidate="novalidate">
            <div class="overlay-content">
                <div class="overlay-column">
                    <div class="overlay-item">
                        <span class="overlay-name">门店名称</span>
                        <input type="text" ng-model="param.name">
                    </div>
					<div class="overlay-item">
						<span class="overlay-name">门店全称</span>
						<input type="text" ng-model="param.full_name">
					</div>
                    <div class="overlay-item">
                        <span class="overlay-name">门店介绍</span>
                        <textarea ng-model="param.desc"></textarea>
                    </div>
                    <div class="overlay-item">
                        <span class="overlay-name">门店类型</span>
                        <select ng-model='param.type'>
							<option value="0">普通</option>
							<option value="1">计算公式1</option>
							<option value="2">计算公式2</option>
							<option value="9">管理</option>
						</select>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- add -->
<!-- <div class="new-cover" ng-show='shop_add'>
    <div class="new-container new-reception-container">
        <div ng-form name="user_add" novalidate="novalidate">
            <div class="new-header new-header-color">添加用户</div>
            <div class="new-content">
                <div class="new-block">
	                <div class="new-item">
	                    <span>门店名称</span>
						<input type="text" ng-model="param.name">
	                </div>
	                <div class="new-item">
	                    <span>门店介绍</span>
							<input type="text" ng-model='param.desc'>
	                </div>
	                <div class="new-item">
	                    <span>门店类型</span>
						<select ng-model='param.type'>
							<option value="0">普通</option>
							<option value="9">管理</option>
						</select>
	                </div>
	                <div class="view-right-item">
	                    <input type="submit" value="添加用户" ng-click="submit()">
	                </div>
		        </div>
            </div>
        </div>
    </div>
</div> -->





<!-- 


<div class="container-fluid common-main">
	<div class="row common-head">
		<div class="col-md-5">
			<div class="common-head-search">
				<input class="clear-input" type="text" placeholder='输入门店信息搜索' ng-model='filter_shop'>
				<span class="glyphicon glyphicon-search common-search-icon"></span>
			</div>
		</div>
		<div class="col-md-7 common-head-content border-left">
			<div class="row">
				<div class="col-xs-12">
					<div class="left" ng-show="add_shop_title">添加门店</div>
					<div class="left" ng-show="upd_shop_title">门店信息修改</div>
					<div class="right">
						<input type="submit" class="common-button-add" value="添加门店" ng-click="add_shop_()">
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="row common-content common-column">
		<div class="col-md-5 common-content-block">
			<div class="row common-content-list user-list shop-bg" ng-repeat="list in data |orderBy:['name'] |filter:filter_shop" ng-click="shop_list(list,data)" ng-class="{true: 'color-user', false: 'color-user-default'}[list.iscolor]">
				<div class="col-xs-12">
					<li>
						<span class="glyphicon glyphicon-user"></span>
						{{list.name}}
					</li>
					<span>门店介绍:{{list.desc}}</span>
				</div>
			</div>
		</div>

		<div class="col-md-7 border-left common-content-data" ng-show="revise_shop">
			<div class="row common-content-input">
				<div class="col-xs-6 col-xs-offset-3 user-revise">
					<label>门店名称</label>
					<input type="text" ng-model="revise_param.name">
				</div>
				<div class="col-xs-6 col-xs-offset-3 user-revise">
					<label>门店介绍</label>
					<input type="text" ng-model='revise_param.desc'>
				</div>
				<div class="col-xs-6 col-xs-offset-3 user-revise">
					<label>门店类型</label>
					<select ng-model='revise_param.type'>
						<option value="0">普通</option>
						<option value="9">管理</option>
					</select>
				</div>
				<div class="col-xs-6 col-xs-offset-3 user-revise">
					<label>选择品牌</label>
					<div class="brand-picker">
							<div class="picker all">
                                <select ng-options="item for item in revise_param._remain_brands" ng-model="brands_selected_to_add" multiple></select>
							</div>

                            <div class="controller">
								<button style="" ng-click="add_brands()"> >> </button>
                            	<button ng-click="remove_brands()"> << </button>
							</div>

							<div class="picker ok">
                                <select ng-options="item for item in revise_param._brands" ng-model="brands_selected_to_remove" multiple></select>
							</div>
					</div>
				</div>


				<div class="col-xs-6 col-xs-offset-3 border-top user-revise">
					<div class="user-revise-submit">
						<input type="submit" class="btn btn-success col-md-6" value="修改提交" ng-click="revise_submit()">
                        <input type="button" class="btn btn-danger col-md-6" value="删除门店" ng-click="delete()">
					</div>
				</div>
			</div>
		</div>

		<div class="col-md-7 border-left common-content-data" ng-show="add_shop">
			<div class="row common-content-input">
					<div class="col-xs-6 col-xs-offset-3 user-revise">
						<label>门店名称</label>
						<input type="text" ng-model="param.name">
					</div>
					<div class="col-xs-6 col-xs-offset-3 user-revise">
						<label>门店介绍</label>
						<input type="text" ng-model='param.desc'>
					</div>
					<div class="col-xs-6 col-xs-offset-3 user-revise">
						<label>门店类型</label>
						<select ng-model='param.type'>
							<option value="0">普通</option>
							<option value="9">管理</option>
						</select>
					</div>
			</div>
			<div class="col-xs-6 col-xs-offset-3 border-top user-revise">
				<div class="user-revise-submit">
					<input type="submit" class="common-button" value="增加门店" ng-click="submit()">
				</div>
			</div>
		</div>

	</div>
</div> -->